<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 1. 入职薪水10K，每年涨幅5 %，第50年工资多少
        var a=10000,b
        for(var i=1;i<50;i++){
            b=a*0.05
            a+=b
        }
        console.log(a)
    </script>
</body>

</html>